import React, { Component } from 'react';
import { HashRouter, Route } from 'react-router-dom';
import Home from '../components/main/main';
import Enter from '../components/login/index';

class Routers extends Component {
  render() {
    return (
      <HashRouter>
        <div>
          <Route path="/" component={Enter} exact></Route>
          <Route path="/home" component={Home}></Route>
        </div>
      </HashRouter>
    );
  }
}
 
export default Routers;